package cn.edu.scnu.semart.model.chat;

import java.io.Serializable;
import java.util.Date;

public class ChatMessage implements Serializable {
    private Long messageId;
    private Long conversationId;
    private Long senderId;
    private String content;
    private String contentType; // text, image, link
    private Boolean isRead;
    private Date sendAt;

    // getter/setter
    public Long getMessageId() { return messageId; }
    public void setMessageId(Long messageId) { this.messageId = messageId; }
    public Long getConversationId() { return conversationId; }
    public void setConversationId(Long conversationId) { this.conversationId = conversationId; }
    public Long getSenderId() { return senderId; }
    public void setSenderId(Long senderId) { this.senderId = senderId; }
    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }
    public String getContentType() { return contentType; }
    public void setContentType(String contentType) { this.contentType = contentType; }
    public Boolean getIsRead() { return isRead; }
    public void setIsRead(Boolean isRead) { this.isRead = isRead; }
    public Date getSendAt() { return sendAt; }
    public void setSendAt(Date sendAt) { this.sendAt = sendAt; }
} 